import request from '@/utils/request/request';

// 获取系统需求合并策略
export function getOptionbyTenentId() {
  return request.get(`/api/procurement/require/require-option/byTenentId`);
}
// 保存系统需求合并策略
export function saveOptionAdmin(data: any) {
  return request.post(
    '/api/procurement/require/require-option/admin/save',
    data
  );
}
// 获取计划员需求合并策略
export function getOptionByUserId(params) {
  return request.get('/api/procurement/require/require-option/byUserId', {
    params,
  });
}
// 保存资源平衡-需求合并策略-计划员
export function saveOptionPlanner(data: any) {
  return request.post(
    '/api/procurement/require/require-option/planner/save',
    data
  );
}
